package io.itit.ecp.admin.server.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import icu.mhb.mybatisplus.plugln.base.service.impl.JoinServiceImpl;
import io.itit.ecp.admin.server.entity.ActivityCarbonEmissionDataEntity;
import io.itit.ecp.admin.server.mapper.ActivityCarbonEmissionDataMapper;
import io.itit.ecp.admin.server.service.IActivityCarbonEmissionDataService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ActivityCarbonEmissionDataServiceImpl extends
        JoinServiceImpl<ActivityCarbonEmissionDataMapper, ActivityCarbonEmissionDataEntity>
        implements IActivityCarbonEmissionDataService {

    @Override
    public List<ActivityCarbonEmissionDataEntity> selectByActivityCarbonId(String activityCarbonId) {
        return baseMapper.selectList(new LambdaQueryWrapper<ActivityCarbonEmissionDataEntity>()
                .eq(ActivityCarbonEmissionDataEntity::getActivityCarbonId, activityCarbonId));
    }
}
